<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{fzjgxxForm.bundleName}"/>
    <head>
        <title>#{text['fzjgxxDetail.title']}</title>
        <meta name="heading" content="#{text['fzjgxxDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="fzjgxxForm">

<h:form id="fzjgxxForm" onsubmit="return validateFzjgxxForm(this)">

<h:inputHidden value="#{fzjgxxForm.fzjgxx.id}" id="id"/>
<h:inputHidden value="#{fzjgxxForm.fzjgxx.version}" id="version"/>

<h:panelGrid columns="6">
   
     <h:outputLabel styleClass="desc" for="xh" value="#{text['fzjgxx.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{fzjgxxForm.fzjgxx.xh}" required="false" maxlength="255">
    </h:inputText>
     <h:outputLabel styleClass="desc" for="fzr" value="#{text['fzjgxx.fzr']}"/>
    <t:message for="fzr" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="fzr" value="#{fzjgxxForm.fzjgxx.fzr}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="fzjgdz" value="#{text['fzjgxx.fzjgdz']}"/>
    <t:message for="fzjgdz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="fzjgdz" value="#{fzjgxxForm.fzjgxx.fzjgdz}" required="false" maxlength="100">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="fzjgmc" value="#{text['fzjgxx.fzjgmc']}"/>
    <t:message for="fzjgmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="fzjgmc" value="#{fzjgxxForm.fzjgxx.fzjgmc}" required="false" maxlength="100">
    </h:inputText>
   
   
    <h:outputLabel styleClass="desc" for="phone" value="#{text['fzjgxx.phone']}"/>
    <t:message for="phone" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="phone" value="#{fzjgxxForm.fzjgxx.phone}" required="false" maxlength="20">
    </h:inputText>
  
  
 <h:outputLabel styleClass="desc" for="bz" value="#{text['fzjgxx.bz']}"/>
    <t:message for="bz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bz" value="#{fzjgxxForm.fzjgxx.bz}" required="false" maxlength="100">
    </h:inputText>



</h:panelGrid>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{fzjgxxForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty fzjgxxForm.fzjgxx.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{fzjgxxForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Fzjgxx')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
</h:form>

<v:validatorScript functionName="validateFzjgxxForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('fzjgxxForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>


 <!-- 
   <h:outputLabel styleClass="desc" for="username" value="#{text['fzjgxx.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{fzjgxxForm.fzjgxx.username}" required="false" maxlength="50">
    </h:inputText>
    
   <h:outputLabel styleClass="desc" for="operation" value="#{text['fzjgxx.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{fzjgxxForm.fzjgxx.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['fzjgxx.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{fzjgxxForm.fzjgxx.optdate}" required="false" maxlength="23">
    </h:inputText>
 
 
 todo: change this to read the identifier field from the other pojo
    <h:selectOneMenu value="#{fzjgxxForm.fzjgxx.jbqk}" id="jbqk" required="false" styleClass="select">
        <f:selectItems value="#{fzjgxxForm.fzjgxx.jbqk}"/>
    </h:selectOneMenu> 
     <h:outputLabel styleClass="desc" for="id" value="#{text['fzjgxx.id']}"/>
    <h:inputText styleClass="text medium" id="id" value="#{fzjgxxForm.fzjgxx.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['fzjgxx.id']}"/>
    </h:inputText>
    <t:message for="id" styleClass="fieldError"/>
    
    -->
